const router = require("express").Router();
const profileCtrl = require("../controller/profile");

// 获取用户资料
router.get("/profiles/:username", profileCtrl.getProfile);

// 关注用户
router.post("/profiles/:username/follow", profileCtrl.follow);

// 取消关注用户
router.delete("/profiles/:username/follow", profileCtrl.unfollow);

module.exports = router;
